const express = require('express') // 创建路由对象
const router = express.Router() // 注册新用户
const expressJoi = require('@escook/express-joi')
const userHandler = require('../router_handler/user')
const { rl } = require('../schema/user')
router.post('/reguser', userHandler.regUser)
// 登录
router.post('/alogin', expressJoi(rl), userHandler.alogin)

// 将路由对象共享出去
module.exports = router
